Write on the margins of the internet. Powered by the AT Protocol.
margin.at
extension
web
atproto
comments
1---
2export const prerender = false;
3
4import OGLayout from '../../../layouts/OGLayout.astro';
5import { fetchOGForRoute } from '../../../lib/og';
6
7const { did, rkey } = Astro.params;
8
9let title = 'Margin';
10let description = 'Annotate the web';
11let image = 'https://margin.at/og.png';
12
13if (did && rkey) {
14 const data = await fetchOGForRoute(did, rkey);
15 if (data) {
16 title = data.title;
17 description = data.description;
18 image = data.image;
19 }
20}
21---
22
23<OGLayout title={title} description={description} image={image} />